package com.parenting.request;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 优惠券
 * </p>
 *
 * @author 烟台业达-王世玺
 * @since 2021-08-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CouponAddRequest对象", description="用于优惠券新增")
public class CouponAddRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "优惠券名称" ,required = true)
    @NotBlank(message = "优惠券名称不能为空")
    private String couponName;

    @ApiModelProperty(value = "优惠券类型" ,required = true)
    @NotBlank(message = "优惠券类型不能为空")
    private String couponType;

    @ApiModelProperty(value = "优惠程度（满减券代表满多少，代金券代表实际付款金额）" )
    private Integer fulls;

    @ApiModelProperty(value = "优惠程度（满减券代表减多少，代金券代表实际金额）")
    private Integer reduce;

    @ApiModelProperty(value = "优惠程度（立减金额）")
    private Integer verticalReduction;

    @ApiModelProperty(value = "优惠券数量" ,required = true)
    @NotNull(message = "优惠券数量不能为空")
    private Integer total;

    @ApiModelProperty(value = "可使用店铺的ID")
    private String availableShopId;

    @ApiModelProperty(value = "可使用店铺的名称")
    private String availableShopName;




}
